package com.analyse.stock.form;

import com.analyse.stock.model.StockInfoModel;
import com.analyse.stock.model.StrategyPoolModel;
import lombok.Data;

import java.io.Serializable;

@Data
public class TradingForm implements Serializable {
    //登录用户
    private String userId;

    //资金账户
    private String accountId;

    //监控的股票基础信息
    private StockInfoModel stockModel;

    //使用的交易策略
    private StrategyPoolModel strategyPool;

    public static TradingForm me(String userId,String accountId,StockInfoModel stockModel,StrategyPoolModel strategyPool){
        TradingForm form = new TradingForm();
        form.setUserId(userId);
        form.setAccountId(accountId);
        form.setStockModel(stockModel);
        form.setStrategyPool(strategyPool);
        return form;
    }
}
